import 'package:boss/ui/page/personalSettings/page/editStoreMessage/provider/edit_store_message_provider.dart';
import 'package:boss/ui/page/personalSettings/page/editStoreMessage/widget/edit_store_message_browser.dart';
import 'package:boss/ui/widget/center_title_app_bar.dart';
import 'package:flutter/material.dart';
import 'package:hi_common/hi_common.dart';
import 'package:provider/provider.dart';
import 'package:router/annotation.dart';

@RouterConfig(EditStoreMessagePage.pageName)
class EditStoreMessagePage extends StatefulWidget {
  static const pageName = '/editStoreMessagePage';

  @override
  _EditStoreMessagePageState createState() => _EditStoreMessagePageState('编辑门店');
}

class _EditStoreMessagePageState extends BaseState<EditStoreMessagePage> {
  _EditStoreMessagePageState(String pageName) : super(pageName);

  @override
  Widget build(BuildContext context) {
    return ChangeNotifierProvider(
      create: (context) => EditStoreMessageProvider(),
      child: Scaffold(
        appBar: CenterTitleAppBar(title: '编辑门店'),
        body: EditStoreMessageBrowser(),
      ),
    );
  }
}
